A SQL join is combines records from two or more tables in a relational database by using values common to each. ANSI-standard SQL specifies five types of JOIN: INNER, LEFT OUTER, RIGHT OUTER, FULL OUTER and CROSS. As a special case, a table (base table, view, or joined table) can JOIN to itself in a self-join. A programmer writes a JOIN statement to identify records for joining. If the evaluated predicate is true, the combined record is then produced in the expected format, a record set or a temporary table.
SQL Inner Join:
A Simpler join is a SQL Inner Join Syntax is as follows:
SQL Outer Join:
In the SQL outer JOIN all the content of the both tables are integrated together either they are matched or not.
Outer join of two types:
1.Left outer join ( Left Join): this join returns all the rows from left table combine with the matching rows of the right table. If you get no matching in the right table it returns NULL values.
2.Right outer join (Right Join): this join returns all the rows from right table are combined with the matching rows of left table .If you get no column matching in the left table .it returns null value.
1.Left outer join ( Left Join):
Leave Comment